Part Number Hot Search : 
HV991 BR101 NTR3162P 21M50 AA3528 472ML C1200 R2000
Product Description
Full Text Search
 

To Download MCZ33991EG Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  freescale semiconductor, inc. reserves the right to change the detail specifications, as may be required, to permit improvements in the design of its products. document number: mc33991 rev. 2.0, 11/2006 freescale semiconductor technical data ? freescale semiconductor, in c., 2006. all rights reserved. gauge driver integrated circuit this 33991 is a single packaged, se rial peripheral interface (spi) controlled, dual stepper motor gauge driver integrated circuit (ic). this monolithic ic consists of f our dual output h-bridge coil drivers and the associated control logic. each pair of h-bridge drivers is used to automatically contro l the speed, direction and magnitude of current through the two coils of a two-phase instrumentation stepper motor, similar to an mmt licensed afic 6405. this device is ideal for use in automotive instrum entation systems requiring distributed and flexible stepper motor gauge driving. the device also eases the transition to stepper motors from air core motors by emulating the air co re pointer movement with little additional processor bandwidth utilization. the device has many attractive features including: features ? mmt-licensed two-phase stepper motor compatible ? minimal processor overhead required ? fully integrated pointer movem ent and position state machine with air core movement emulation ? 4096 possible steady state pointer positions ? 340 maximum pointer sweep ? linear 4500 2 ? maximum pointer velocity of 400 ? analog microstepping (12 steps/d egree of pointer movement) ? pointer calibration and return to zero ? spi controlled 16-bit word ? calibratable internal clock ? low sleep mode current ? pb-free packaging designated by suffix code eg figure 1. 33991 simplified application diagram gauge driver integrated circuit dw suffix eg suffix (pb-free) 98asb42344b 24-pin soicw 33991 ordering information device temperature range (t a ) package mc33991dw/r2 -40 to 125c soicw MCZ33991EG/r2 5.0 v regulator mcu motor 1 motor 2 v pwr 33991 vpwr vdd rt rs cs sclk si so sin1+ sin1- cos1+ cos1- sin2+ sin2- cos2+ cos2- gnd
analog integrated circuit device data 2 freescale semiconductor 33991 internal block diagram internal block diagram figure 2. 33991 simplifi ed internal block diagram spi logic oscillator under & over voltage detect internal reference cos0 sin0 cos1 ilim over temp sin1 rtz h-bridge & control cos0+ cos0- sin0+ sin0- cos1+ cos1- rtz sin1+ sin1- gnd rst cs sclk so si vdd vpwr
analog integrated circuit device data freescale semiconductor 3 33991 pin connections pin connections table 1. 33991 pin definitions pin number pin name definitions 1 cos0+ h-bridge output. this is the output pin of a half bridge, desi gned to source or sink current. the h-bridge pins linearly drive the sine and cosine coils of tw o separate stepper motors to provide four-quadrant operation. 2 cos0- h-bridge output. this is the output pin of a half bridge, desi gned to source or sink current. the h-bridge pins linearly drive the sine and cosine coils of tw o separate stepper motors to provide four-quadrant operation. 3 sin0+ h-bridge output. this is the output pin of a half bridge, desi gned to source or sink current. the h-bridge pins linearly drive the sine and cosine coils of tw o separate stepper motors to provide four-quadrant operation. 4 sin0- h-bridge output. this is the output pin of a half bridge, desi gned to source or sink current. the h-bridge pins linearly drive the sine and cosine coils of tw o separate stepper motors to provide four-quadrant operation. 5 - 8 gnd ground. these pins serve as the ground for the source of the low-side output transistors as well as the logic portion of the device . they also help dissipate heat from the device. 9 cs chip select. this pin is connected to a chip select output of a lsi ic. this ic c ontrols which device is addressed by pulling the cs pin of the desire device low, enabling the spi communication with the device, while other devices on the seri al link keep their serial outputs tri-stat ed. this input has an internal active pull-up, requiring cmos logic levels. this pin is also used to calibrate the internal clock. 10 sclk serial clock. this pin is connected to the sclk pin of t he master device and acts as a bit clock for the spi port. it transitions on time per bit transferred at an operating frequency, fspi, defined in the coil output timing table. it is idle between command transfers. th e pin is 50 percent duty cycle, with cmos logic levels. this signal is used to sh ift data to and from the device. 11 so serial output. this pin is connected to the spi serial da ta input pin of the master device, or to the si pin of the next device in a daisy chain. this output will re main tri-stated unless the device is selected by a low cs signal. the output signal generated will have cmos l ogic levels and the output will transition on the rising edges of sclk. the serial output data provides status feedback and fault information for each output and is returned msb first when the device is addressed. 12 si serial input. this pin is connected to the spi serial data ou tput pin of the master device from which it receives output command data. this input has an inte rnal active pull down requiring cmos logic levels. the serial data transmitted on this line is a 16-bit control command sent msb first, controlling the gauge functions. the master ensures data is av ailable on the falling edge of sclk. 13 rtz multiplexed output. this multiplexed output pin of the non-driven coil during an rtz event. 14 v dd voltage. this spi and logic power supply input will work with 5.0 v supplies. cos1+ gnd gnd gnd gnd v pwr rst v dd rtz cos1- sin1+ sin1- cos0+ gnd gnd gnd gnd cs sclk si cos0 sin0+ sin0 so 5 6 7 8 9 10 11 12 2 3 4 24 20 19 18 17 16 15 13 23 22 21 14 1
analog integrated circuit device data 4 freescale semiconductor 33991 pin connections 15 rst reset. if the master decides to reset the device, or place it into a sleep state, the rst pin is driven to a logic 0. a logic 0 on the rst pin will force all internal logic to the k nown default state. this input has an internal active pull-up. 16 v pwr battery voltage. power supply. 17 - 20 gnd ground. these pins serve as the ground for the source of the low-side output transistors as well as the logic portion of the device . they also help dissipate heat from the device. 21 sin1- h-bridge output. this is the output pin of a half bridge, desi gned to source or sink current. the h-bridge pins linearly drive the sine and cosine coils of tw o separate stepper motors to provide four-quadrant operation. 22 sin1+ h-bridge output. this is the output pin of a half bridge, desi gned to source or sink current. the h-bridge pins linearly drive the sine and cosine coils of tw o separate stepper motors to provide four-quadrant operation. 23 cos1- h-bridge output. this is the output pin of a half bridge, desi gned to source or sink current. the h-bridge pins linearly drive the sine and cosine coils of tw o separate stepper motors to provide four-quadrant operation. 24 cos1+ h-bridge output. this is the output pin of a half bridge, desi gned to source or sink current. the h-bridge pins linearly drive the sine and cosine coils of tw o separate stepper motors to provide four-quadrant operation. table 1. 33991 pin definitions (continued) pin number pin name definitions
analog integrated circuit device data freescale semiconductor 5 33991 electrical characteristics maximum ratings electrical characteristics maximum ratings table 2. 33991 maximum ratings (all voltages are with respect to ground unless otherwise noted) rating symbol value limit power supply voltage steady state v pwr(sus) -0.3 to 41 v input pin voltage (1) v in -0.3 to 7.0 v sin+/- cos +/- continuous per output current (2) i outmax 40 ma storage temperature t stg -55 to 150 c operating junction temperature t junc -40 to 150 c thermal resistance (c/w) ambient junction to lead ja jl 60 20 c/w c/w esd voltage (3) human body model machine model v esd1 v esd2 2000 200 v v peak package reflow temperature during reflow (4) , (5) t pprt note 5 c notes 1. exceeding voltage limits on input pins may cause permanent damage to the device. 2. output continuous output rating so long as maximum junction te mperature is not exceeded. operation at 125c ambient temperatu re will require maximum output current com putation using package thermal resistances 3. vesd1 testing is performed in accordance with the human body model (czap = 100pf, rzap = 1500 ? ), all pins are capable of human body model rsp voltages of 2000 v with one exception. the so pin is capable of 1900 v, vesd2 testing is performed in accorda nce with the machine model (czap = 200pf, rzap = 0 ? ) 4. pin soldering temperature limit is for 10 seconds maximum duration. not designed for immersion soldering. exceeding these lim its may cause malfunction or permanent damage to the device. 5. freescale?s package reflow capability meets pb-free requir ements for jedec standard j-std-020c. for peak package reflow temperature and moisture sensitivity levels (msl), go to www.freescale.com, search by part number [e.g. remove prefixes/suffixes and enter the core id to view all orderable parts . (i.e. mc33xxxd enter 33xxx), and review parametrics.
analog integrated circuit device data 6 freescale semiconductor 33991 electrical characteristics static electrical characteristics static electrical characteristics table 3. static electrical characteristics (characteristics noted under conditions 4.75 v < v dd < 5.25 v, -40c < t j < 150c, unless otherwise noted) characteristic symbol min typ max unit power input supply voltage range fully operational v pwr 6.5 ? 26.0 v v pwr supply current (gauge 1 & 2 outputs on, no output loads) i pwr(on) ? 4.0 6.0 ma v pwr supply current (all outputs disabled) (reset =logic 0, v dd =5 v) (reset =logic 0, v dd =0 v) i pwslp1 i pwrslp2 ? 42 15 60 25 a over voltage detection level (6) v pwrov 26 32 38 v under voltage detection level (7) v pwruv 5.0 5.6 6.2 v logic supply voltage range (5 v nominal supply) v dd 4.5 5.0 5.5 v under v dd logic reset v dduv ? ? 4.5 v v dd supply current (sleep: reset logic 0) i dd(off) ? 40 65 a v dd supply current (outputs enabled) i dd(on) ? 1.0 1.8 ma notes 6. outputs will disable and must be re-enabled via the pecr command. 7. outputs remain active; however, the reduction in drive voltage may result in a loss of position control.
analog integrated circuit device data freescale semiconductor 7 33991 electrical characteristics static electrical characteristics power outputs microstep output (measured across coil outputs) sin0,1, (cos0,1, ) (see 33991 pinout ) rout = 200 ? steps 6,18 (0,12) steps 5, 7, 17,19 (1,11,13, 23) steps 4, 8.16, 20 (2,10,14, 22) steps 3, 9,15, 21 (3, 9,15, 21) steps 2,10,14, 22 (4, 8,16, 20) steps 1,11,13, 23 (5, 7,17,19) steps 0,12 (6,18) vst6 vst5 vst4 vst3 vst2 vst1 vst0 4.9 0.94xvst6 0.84xvst6 0.69xvst6 0.47xvst6 0.23xvst6 -0.1 5.3 0.97xvst6 0.87xvst6 0.71xvst6 0.50xvst6 0.26xvst6 0 6.0 1.00xvst6 0.94xvst6 0.79xvst6 0.57xvst6 0.31xvst6 0.1 v full step active output (measured across coil outputs) sin0,1, (cos0,1, ) (see figure 4) steps 1, 3 (0, 2) vfs 4.9 5.3 6.0 v microstep, full step output (measured from coil low side to ground) sin0,1, (cos0,1, ) i out = 30ma vls 0 0.1 0.3 v output flyback clamp (8) vfb ? vst1+0.5 vst1+1.0 v output current limit (out = vstp6) i lim 40 100 170 ma over temperature shutdown otsd 155 ? 180 c over temperature hysteresis (8) ot hyst 8 ? 16 c notes 8. not 100 percent tested. table 3. static electrical characteristics (continued) (characteristics noted under conditions 4.75 v < v dd < 5.25 v, -40c < t j < 150c, unless otherwise noted) characteristic symbol min typ max unit
analog integrated circuit device data 8 freescale semiconductor 33991 electrical characteristics static electrical characteristics control i/o input logic high voltage (9) v ih 2.0 ? ? v input logic low voltage (9) v il ? ? 0.8 v input logic voltage hysteresis (10) v in(hyst) ? 100 ? mv input logic pull down current (si, sclk) i dwn 3 ? 20 a input logic pull-up current ( cs , rst ) i up 5 ? 20 a so high state output voltage (i oh = 1.0 ma) v soh 0.8vdd ? ? v so low state output voltage (i ol = -1.6 ma) v sol ? 0.2 0.4 v so tri-state leakage current ( cs 3.5 v) s olk -5 0 5 a input capacitance (11) c in ? 4 12 pf so tri-state capacitance (11) c so ? ? 20 pf notes 9. v dd = 5 v 10. not production tested. this parameter is guarant eed by design, but it is not production tested. 11. capacitance not measured. this parameter is guarant eed by design, but it is not production tested. table 3. static electrical characteristics (continued) (characteristics noted under conditions 4.75 v < v dd < 5.25 v, -40c < t j < 150c, unless otherwise noted) characteristic symbol min typ max unit
analog integrated circuit device data freescale semiconductor 9 33991 electrical characteristics static electrical characteristics power output and clock timings sin, cos output turn on delay time (time from rising cs enabling outputs to steady state coil voltages and currents) (12) t dhy(on) ? ? 1.0 ms sin, cos output turn off del ay time (time from rising cs disables outputs to steady state coil voltages and currents) (12) t dhy(off) ? ? 1.0 ms uncalibrated oscillator cycle time t clu 0.65 1.0 1.7 s calibrated oscillator c ycle time (cal pulse = 8 s, pecr d4 is logic 0) t clc 1.0 1.1 1.2 s calibrated oscillator c ycle time (cal pulse = 8 s, pecr d4 is logic 1) t clc 0.9 1.0 1.1 s maximum pointer speed (13) v max ? ? 400 c maximum pointer acceleration (13) a max ? ? 4500 c 2 notes 12. maximum specified time for the 33991 is the minimum guaranteed time needed from the micro. 13. the minimum and maximum value will vary proportionally to t he internal clock tolerance. these are not 100 percent tested. table 3. static electrical characteristics (continued) (characteristics noted under conditions 4.75 v < v dd < 5.25 v, -40c < t j < 150c, unless otherwise noted) characteristic symbol min typ max unit
analog integrated circuit device data 10 freescale semiconductor 33991 electrical characteristics static electrical characteristics spi timing interface recommended frequency of spi operation f spi ? 1.0 3.0 mhz falling edge of cs to rising edge of sclk (required setup time) (15) t lead ? 50 167 ns falling edge of sclk to rising edge of cs (required setup time) (15) t lag ? 50 167 ns si to falling edge of sclk (required setup time) (15) ts lsu ? 25 83 ns falling edge of sclk to si (required hold time) (15) tsi (hold) ? 25 83 ns so rise time (cl=200pf) tr so ? 25 50 ns so fall time (cl=200pf) tf so ? 25 50 ns si, cs , sclk, incoming signal rise time (16) tr si ? ? 50 ns si, cs , sclk, incoming signal fall time (16) tf si ? ? 50 ns falling edge of rst to rising edge of rst (required setup time) (15) tw rst ? ? 3.0 s 14. rising edge of cs to falling edge of cs (required setup time) (15) (20) t cs ? ? 5.0 s rising edge of rst to falling edge of cs (required setup time) (15) t en ? ? 5.0 s time from falling edge of cs to so low impedance (17) t so(en) ? ? 145 ns time from rising edge of cs to so high impedance (18) t so(dis) ? 1.3 4.0 s time from rising edge of sclk to so data valid (19) 0.2 v dd < = so> = 0.8 v dd , cl = 200 pf t valid ? 65 105 ns notes 15. the maximum setup time that is specified for the 33991 is th e minimum time needed from the micro controller to guarantee cor rect operation. 16. rise and fall time of incoming si, cs , and sclk signals suggested for design considerat ion to prevent the occurrence of double pulsing. 17. time required for output status data to be available for use at so. 1 k ohm load on so 18. time required for output status data to be terminated at so. 1 k ohm load on so. 19. time required to obtain valid data out from so following the rise of sclk. 20. this value is for a 1 mhz calibrated internal clock; it will change proportionally as the internal clock frequency changes. the device shall meet all spi interf ace-timing requirements specified in the spi interface timing , over the temperature range specified in the environmental requirements section. digital interface timing is based on a symmetrical 50% duty cycle sclk clock period of 333 ns. the device shall be fully functional for slower clock speeds. table 3. static electrical characteristics (continued) (characteristics noted under conditions 4.75 v < v dd < 5.25 v, -40c < t j < 150c, unless otherwise noted) characteristic symbol min typ max unit
analog integrated circuit device data freescale semiconductor 11 33991 electrical characteristics timing diagrams timing diagrams figure 3. input timing switching characteristics figure 4. valid data delay time and valid time waveforms si rstb csb sclk don?t care don?t care don?t care valid valid vih vil vih vih vih vil vil vil twrstb tlead twsclkh trsi tlag tsisu twsclkl tsi(hold) tfsi 0.7 vdd 0.2 vdd 0.7vdd 0.2vdd 0.2vdd 0.7vdd 0.7vdd tcsb tenbl rst cs si sclk so so sclk voh vol voh vol voh vol tfsi tdlylh tdlyhl tvalid trso tfso 3.5v 50% trsi high-to-low 1.0v 0.7 vdd 0.2vdd 0.2 vdd 0.7 vdd low-to-high
analog integrated circuit device data 12 freescale semiconductor 33991 33991 spi interface and protocol description introduction 33991 spi interface and protocol description introduction the spi interface has a full duplex, three-wire synchronous, 16-bit serial synchronous interface data transfer and four i/o lines asso ciated with it: (si, so, sclk, and cs ). the si/so pins of the 33991 follows a first in / first out (d15 / d0) protocol with both input and output words transferring the most signific ant bit first. all inputs are compatible with 5.0 v cmos logic levels. detailed signal descriptions chip select ( cs ) the chip select ( cs ) pin enables communication with the master device. when this pin is in a logic [0] state, the 33991 is capable of transferring information to, and receiving information from, the master. the 33991latches data in from the input shift registers to th e addressed registers on the rising edge of cs . the output driver on the so pin is enabled when cs is logic [0]. when cs is logic high, signals at the sclk and si pins are ignored; the so pin is tri-stated (high impedance). cs will only be transitioned from a logic [1] state to a logic [0] state when sclk is a logic [0]. cs has an internal pull-up ( lup ) connected to the pin as specified in the control i/o table . serial clock (sclk) sclk clocks the internal shift registers of the 33991device. the serial input (s i) pin accepts data into the input shift register on the fa lling edge of the sclk signal while the serial output pin (so) shifts data information out of the so line driver on the rising edge of the sclk signal. it is important the sclk pin be in a logic [0] state whenever the cs makes any transition. sclk has an internal pull down ( idwn ), specified in the control i/o table . when cs is logic [1], signals at the sclk and si pins are ignored; so is tri- stated (high impedance). see the data transfer timing diagrams in figures 2 and 3. serial input (si) this pin is the input of the se rial peripheral interface (spi). serial input (si) information is read on the falling edge of sclk. a 16-bit stream of serial data is required on the si pin, beginning with the most significant bit (msb). messages not multiples of 16 bits (e.g. daisy chained device messages) are ignored. after transmitting a 16-bit word, the cs pin has to be deasserted (logic [1]) before transmitting a new word. si information is ignored when cs is in a logic high state. serial output (so) the serial output (so) data pin is a tri-stateable output from the shift register. the status register bits will be the first 16-bits shifted out. those bits are followed by the message bits clocked in fifo, when th e device is in a daisy chain connection, or being sent words of 16-bit multiples. data is shifted on the rising edge of the sclk signal. the so pin will remain in a high impedance state until the cs pin is put into a logic low state. functional description this section provides a description of the 33991 spi behavior. to follow the explanations below, please refer to the timing diagrams shown in figures 4 and 5. table 4. data transfer timing pin description cs (1-to-0) so pin is enabled cs (0-to-1) 33991 configuration and desired output states are transferred and executed according to the data in the shift registers. so will change state on the rising edge of the sclk pin signal. si will accept data on the falling edge of the sclk pin signal
analog integrated circuit device data freescale semiconductor 13 33991 timing descriptions and diagrams communication memory maps timing descriptions and diagrams figure 5. single 16-bit word spi communication figure 6. multiple 16-bit word spi communication data input the input shift register captur es data at the falling edge of the sclk clock. the sclk clock pulses exactly 16 times only inside the transmission windows ( cs in a logic [0] state). by the time the cs signal goes to logic [1] again, the contents of the input shift regi ster are transferred to the appropriate internal register, according to the address contained in bits 15-13. the minimum time cs should be kept high depends on the internal clock speed. that data is specified in the spi interface timing table . it must be long enough so the internal clock is able to capture the data from the input shift register and transfer it to the internal registers. data output at the first rising edge of the sclk clock, with the cs at logic [0], the contents of th e status word register are transferred to the output shif t register. the first 16 bits clocked out are the status bits. if data continues to clock in before the cs transitions to a logic [1], the device to shift out the data previously clocked in fifo after the cs first transitioned to logic [0]. communication memory maps the 33991device is capable of interfacing directly with a micro controller, via the 16-bit spi protocol described and specified below. the device is controlled by the microprocessor and reports back status information via the spi. this section provides a detailed description of all registers accessible via serial in terface. the various registers control the behavior of this device. a message is transmitted by the master beginning with the msb (d15) and ending with the lsb (d0). multiple messages can be transmitted in succession to accommodate those applications where daisy chaining is desirable, or to confirm transmitted data, as long as the messages are all multiples of 16 bits. data is transferred through daisy chained devices, illustrated in figure 5. if an attempt is made to latch in a message smaller than 16 bits wide, it is ignored. the 33991 uses six registers to configure the device and control the state of the four h-bridge outputs. the registers are addressed via d15-d13 of the incoming spi word, in table 2. internal registers are loaded som etim e after this edge csb si sclk d15 d1 d2 d3 d4 d5 d6 d7 d8 d9 d14 d13 d12 d11 d10 od12 d0 od13 od14 od15 od6 od7 od8 od9 od10 od11 od1 od2 od3 od4 od5 1. so is tri-stated when csb is logic 1. notes: od0 so output shift register is loaded here cs sclk si so cs is logic 1. csb si sclk d15 d1* d2* d13* d14* d15* d0 d1 d14 d13 d2 d0* od13 od14 od15 d14 d15 od0 od1 od2 d1 d2 d13 1. so is tri-stated when csb is logic 1. 2. d 15, d 14, d 13, ..., and d 0 refer to the first 16 bits of data into the g d ic . 3. d 15*, d 14*, d 13*, ... , and d 0* refer to the m ost recent entry of program data into the g d ic . 4. o d 15, o d 14, o d 13, ..., and o d 0 refer to the first 16 bits of fault and status data out of the g d ic . notes : d0 so cs si so sclk cs is logic 1. 33991. 33991. 33991.
analog integrated circuit device data 14 freescale semiconductor 33991 timing descriptions and diagrams communication memory maps module memory map various registers of the 33991 spi module are addressed by the three msb of the 16-bit word received serially. functions to be controlled include: ? individual gauge drive enabling ? power-up/down ? internal clock calibration ? gauge pointer position and velocity ? gauge pointer zeroing status reporting includes: ? individual gauge over temperature condition ? battery out of range condition ? internal clock status ? confirmation of coil output changes should result in pointer movement table 2 provides the register availa ble to control the above functions. register descriptions power, enable, and cali bration register (pecr) this register allows the master to independently enable or disable the output drivers of the two gauge controllers. si address 000 (power, enable, & calibration register is illustrated in figure 3. a write to the 33991 using this register allows the master to independently enable or disable the output drivers of the two gauge controllers as well as to calibrate the internal clock, or send a null command for the purpose of reading the status bi ts. this register is also used to place the 33991 into a low current consumption mode. each of the gauge drivers can be enabled by writing a logic [1] to their assigned address bits, d0 and d1 respectively. this feature could be useful to dis able a driver if it is failing or not being used. the device can be placed into a standby current mode by writing a logic[0] to both d0 and d1. during this state, most current consuming circuits are biased off. when in the standby mode, the internal clock will remain on. the internal state machine utilizes a rom table of step times defining the duration the motor will spend at each microstep as it accelerates or decelerates to a commanded position. the accuracy of the acceleration and velocity of the motor is directly related to the accuracy of the internal clock. although the accuracy of the in ternal clock is temperature independent, the non-calibrated tolerance is +70 to -35 percent. the 33991 was designed with a feature allowing the internal clock to be software calibrated to a tighter tolerance of 10 percent, using the cs pin and a reference time pulse provided by the micro controller. calibration of the internal clock is initiated by writing a logic [1] to d3. the calibrat ion pulse must be 8 s for an internal clock speed of 1mhz, will be sent on the cs pin immediately after the spi word is sent. no other spi lines will be toggled. a clock calibration will be allowed only if the gauges are disabled or the pointers are not moving, as indicated by status bits st4 and st5. some applications may require a guaranteed maximum pointer velocity and acceleration. guaranteeing these maximums requires the nominal internal clock frequency fall below 1mhz. the frequency range of the calibrated clock will always be below 1mhz if bit d4 is logic [0] when initiating a calibration command, followed by an 8 s reference pulse. the frequency will be centered at 1mhz if bit d4 is logic [1]. some applications may require a slower calibrated clock due to a lower motor gear reduction ratio. writing a logic [1] to bit d2 will slow the internal oscillator by one-third, leading to a situation where it is possible to calibrate at maximum 667 khz or centered at 667 khz. in these cases, it may be necessary to provide a longer calibration pulse of exactly 12 s, without any indication of a calibration fault at status bit st7, as should be the case for 1 mhz if d2 is left logic [0]. if bit d12 is logic [1] during a pecr command, the state of d11: d0 will be ignored; this is referenced as the null command and can be used to read device status without affecting device operation. these bits are write-only . pe12?null command for status read ? 0 = disable ? 1 = enable pe11: pe5 these bits must be transmitted as logic [0] for valid pecr commands. pe4?clock calibration frequency selector ? 0 = maximum f=1mhz (for 8us calibration pulse) table 5. module memory map address [15:13] use name 000 power, enable, and calibration register pecr 001 maximum velocity register velr 010 gauge 0 position register pos0r 011 gauge 1 position register pos1r 100 return to 0 register rtzr 101 return to 0 confirmation register rtzcr 110 not used 111 reserved for test table 6. power, enable and calibration register (pecr) address: 000 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 write pe12 0 0 0 0 0 0 0 pe4 pe3 pe2 pe1 pe0
analog integrated circuit device data freescale semiconductor 15 33991 timing descriptions and diagrams communication memory maps ? 1 = nominal f=1mhz (for 8us calibration pulse) pe3?clock calibration enable?this bit enables or disables the clock calibration. ? 0 = disable ? 1 = enable pe2?oscillator adjustment ?0 = t osc ? 1 = 0.66 x t osc pe1? gauge 1 enable?this bit enables or disables the output driver of gauge 1. ? 0 = disable ? 1 = enable pe0 ?gauge 0 enable?this bit enables or disables the output driver of gauge 0. ? 0 = disable ?1 = enable maximum velocity register (velr) si address 001?gauge maximu m velocity register is used to set a maximum velocity for each gauge. see table 4. bits d7: d0 contain a position value from 1?255 representative of the table position value. the table value becomes the maximum velocity until it is changed to another value. if a maximum value is chosen greater than the maximum velocity in the acce leration table, the maximum table value will become the maximum velocity. if the motor is turning at a value greater than the new maximum, the motor will ignore the new value until the speed falls equal to, or below it. velocity for each motor can be changed simultaneously, or independently, by writing d8 and/or d9 to a logic [1]. bits d10: d12 must be at logic [0] for valid velr commands. these bits are write-only . v12?v10 these bits must be transmitted as logic 0 for valid velr commands v9?gauge 1 velocity?specifies whether the maximum velocity determined in the v7: v0 field will apply to gauge 1. ? 0 = velocity does not apply to gauge 1 ? 1 = velocity applies to gauge 1 v8 ? gauge 0 velocity?specifies whether the maximum velocity specified in the v7: v0 field will apply to gauge 0. ? 0 = velocity does not apply to gauge 0 ? 1 = velocity applies to gauge 0 v7?v0 maximum velocity?s pecifies the maximum velocity position from the acceleration table. this velocity will remain the maximum of the intended gauge until changed by command. velocities can range from position 1 (00000001) to position 255 (11111111). gauge 0/1 position re gister (pos0r, pos1r) ? si addresses 010?gauge 0 position register receives writing when communicating the desired pointer positions. ? si address 011?gauge 1 position register receives writing when communicating the desired pointer positions. ? register bits d11: d0 receives writing when communicating the desired pointer positions. commanded positions can range from 0 to 4095. the d12 bit must be at logic [0] for valid pos0r and pos1r commands. these bits are write-only . p0 12?this bit must be transmitted as logic[0] for valid commands. p0 11: p00?desired pointer position of gauge 0. pointer positions can range from 0 (000000000000) to position 4095 (111111111111). for a stepper motor requiring 12 microsteps per degree of pointer movement, the maximum pointer sweep is 341.25 . table 7. maximum velocity register (velr) address: 001 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 write 0 0 0 v9 v8 v7 v6 v5 v4 v3 v2 v1 v0 table 8. gauge 0 position register (pos0r) address: 010 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 write 0 p011 p010 p09 p08 p07 p06 p05 p04 p03 p02 p01 p00 table 9. gauge 1 position register (pos1r) address: 011 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 write 0 p011 p010 p09 p08 p07 p06 p05 p04 p03 p02 p01 p00
analog integrated circuit device data 16 freescale semiconductor 33991 timing descriptions and diagrams communication memory maps these bits are write-only . p0 12?this bit must be transmitted as logic[0] for valid commands. p0 11: p00?desired pointer position of gauge 1. pointer positions can range from 0 (000000000000) to position 4095 (111111111111). for a stepper motor requiring 12 microsteps per degree of pointer movement, the maximum pointer sweep is 341.25 . gauge return to zero register (rtzr) si address 100?gauge return to zero register (rtzr), provided in table 7, is written to return the gauge pointers to the zero position. during an rtz event, the pointer is returned to zero using full steps where only one coil is driven at any point in time. the back electromotive force (emf) signal present on the non-driven coil is integrated; its results are stored in an accumulator. co ntents of this register?s 15- bit rtz accumulator can be read eight bits at a time. a logic [1] written to bit d1 enables a return to zero for gauge 0 if d0 is logic [0], and gauge 1 if d0 is 1, respectively. similarly, a logic [0] written to bit d1 disables a return to zero for gauge 0 when d0 is logic [0], and gauge 1 when d0 is 1, respectively. bits d3 and d2 are used to determine which eight bits of the 15-bit rtz accumulator are clocked out of the so register as the 8 msbs of the so word . see table 12. this feature provides the flexibility to look at 15 bits of content with eight bits of the so word. this 8-bit window can be dynamically changed while in the rtz mode. a logic [00], written to bits d3:d2, results in the rtz accumulator bits 7: 0, clocked out as so bits d15:d8 respectively. similarly, a logic [01] results in rtz counter bits 11:4 clocked out and logic [10] delivers counter bits 14:8 as so bits d14:d8 respectively. a logic [11] clocks out the same information as logic [10]. this feature allows the master to monitor the rtz information regardless the size of the signal. further, this feature is very useful during the determination of the accumulator offset to be loaded in for a motor and pointer combination. it should be noted, rtz accumulator contents will reflect the data from the previous step. the first accumulator results to be read back during the first step will be 1111111111111111. bits d12:d5 must be at logic [0] for valid rtzr commands. bit d4 is used to enable an unconditional rtz event. a logic [0] results in a typical rtz event automatically stopping when a stall condition is detected. a logic [1] results in rtz movement, stopping only if a logic [0] is written to bit d0. this feature is useful during deve lopment and characterization of rtz requirements. the register bits in table 7 are write-only. rz12:rz5? these bits must be transmitted as logic [0] for valid commands. rz4?this bit is used to enable an unconditional rtz event. ? 0 = automatic return to zero ? 1 = unconditional return to zero rz3:rz2? these bits are used to determine which eight bits of the rtz accumulator will be clocked out via the so pin. see table 8. rz1?return to zero commands the selected gauge to return the pointer to zero position. ? 0 = return to zero disabled ? 1 = return to zero enabled rz0?gauge select: gauge 0/gauge 1selects the gauge to be commanded. ? 0 = selects gauge 0 ? 1 = selects gauge 1 gauge return to ze ro configuration register si address 101?gauge return to zero configuration register (rtzcr) is used to configure the return to zero event. see table 9. it is writt en to modify the step time, or rate; the pointer moves during an rtz event. also, the integration blanking time is adjustable with this command. integration blanking time is th e time immediately following the transition of a coil from a driv en state to an open state in the rtz mode. finally, this command is used to adjust the threshold of the rtz integration register. the values used for this register will be chosen during development to optimize the rtz for each application. various resonance frequencies can occur due to the interaction between the motor and the pointer. this command permits moving the rtz pointer speed away from these frequencies. bits d3: d0 determine the time spent at each full step during an rtz event. the step time associated with each bit table 10. return to zero register (rtzr) address: 100 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 write 0 0 0 0 0 0 0 0 rz4 rz3 rz2 rz1 rz0 table 11. rtz accumulator bit select d3 d2 rtz accumulator bits to so bits st15:st8 0 0 [7:0] 0 1 [11:4] 1 0 [14:8] 1 1 [14:8]
analog integrated circuit device data freescale semiconductor 17 33991 timing descriptions and diagrams communication memory maps combination is illustrated in table 10. the default full step time is 21.25 ms (0101). if th ere are two full steps per degree of pointer moveme nt, the pointer speed is: 1/(fs 2). bit d4 determines the provided blanking time immediately following a full step change, and before enabling the integration of the non-driven coil signal. the blanking time is either 512 s, when d4 is logic [0], or 768 s when d4 is logic [1]. detecting pointer movement is accomplished by integrating the back emf present in the non-driven coil during the rtz event. the integration circuitry is implemented using a sigma-delta converter resulting in a representative value in the 15-bit rtz accumulator at the end of each full step. the value in the rtz accumulator represents the change in flux and is compared to a threshold. values above the threshold indicate a pointer is moving. values below the threshold indicate a stalled pointer, thereb y resulting in the cessation of the rtz event. the rtz accumulator bits are signed and represented in two?s complement. if the rtzr d3:d2 bits were written as 10 or 11, the st14 bit corresponds to bit d14 of the rtz accumulator, the sign bit. after a full step of integration, a sign bit of 0 is the indicator of an accumulator exceeding the decision threshold of 0, and the pointer is assumed to still be moving. similarly, if the sign bit is logic [1] after a full step of integration, the accumulator va lue is negative and the pointer is assumed to be stopped. the integrator and accumulator are initialized after each full step. accurate pointer stall detection depends on a correctly preloaded accumulator for specific gauge, pointer, and full step combinations. bits d12:d5 are used to offset the initial rtz accumulator value, properly detecting a stalled motor. the initial accumulator value at the start of a full step of integration is negative. if the accumulator was correctly preloaded, a free moving pointer will result in a positive value at the end of the integration ti me. a stalled pointer results in a negative value. the preloaded values associated with each combination of bits d12:d5 ar e illustrated in table 11. the accumulator should be loaded with a negative value resulting in a transition of the accumulator msb to a logic [1] when the motor is stalled. after a power- up, or any reset in the default mode, the 33991 device sets the accumulator value to -1, resulting in an unconditional rtz pointer movement. these bits are write-only . rc12:rc5? these bits determine the preloaded value into the rtz integration accumu lator to adjust the detection threshold. values range from -1 (00000000) to -4081 (11111111) provided in table 11. rc4?this bit determines the rtz blanking time. ? 0 = 512 s ? 1 = 768 s rc3:rc0? these bits determine the full step time during an rtz event, determining t he pointer moving rate. step times range from 4.86 ms (0000) to 62.21ms (1111). those are illustrated in table 10. the default time is 21.25 ms (0101). table 12. rtzcr si register assignment address: 101 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 write rc12 rc11 rc10 rc9 rc8 rc7 rc6 rc5 rc4 rc3 rc2 rc1 rc0 table 13. rtzcr full step time rc3 rc2 rc1 rc0 full step time (ms) 0 0 0 0 4.86 0 0 0 1 4.86 0 0 1 0 8.96 0 0 1 1 13.06 0 1 0 0 17.15 0 1 0 1 21.25 0 1 1 0 25.34 0 1 1 1 29.44 1 0 0 0 33.54 1 0 0 1 37.63 1 0 1 0 41.73 1 0 1 1 45.82
analog integrated circuit device data 18 freescale semiconductor 33991 timing descriptions and diagrams communication memory maps so communication when the cs pin is pulled low, the internal status word register is loaded into the output register and the fault data is clocked out msb (od15) first. following a cs transition 0 to 1, the device determines if the message shift was of a valid length and if so, latches the data into the appropriate registers. a valid message length is one that is greater than 0 bits and a multiple of 16 bits. at this time, the so pin is tri- stated and the fault status register is now able to accept new fault status information. if the message length was determined to be invalid, the status information is not cleared. it is transmitted again during the next spi message. any bits clocked out of the so pin after the first sixteen, is representative of the initial me ssage bits clocked into the si pin. that is due to the cs pin first transitioned to a logic [0]. this feature is useful for daisy chaining devices as well as message verification. these are read-only bits. st15:st8? these bits represent the eight bits from the rtz accumulator as determined by the status of bits rz2 and rz3 of the rtzr, defined in table 8. these bits represent the integrated signal present on the non-driven coil during an rtz event. these bits will be logi c[0] after power-on reset, or after the rst pin transitions from logi c [0] to [1]. after an rtz event, they will represent the last rtz accumulator result before the rtz was stopped. st7?calibrated clock out of spec?a logic [1] on this bit indicates the clock count calibrated to a value outside of the expected range and given the tolerance specified by t clc in the spi interface timing table. ? 0 = clock with in specification ? 1 = clock out of specification st6?under voltage or over voltage indication? a logic [1] on this bit indicates the v pwr voltage fell to a level below the v pwruv , or it exceeded an upper limit of v pwrov , as specified in the static electrical characteristics table , since the last spi communication. an under voltage event is just flagged, while an over voltage event will automatically disable the driver outputs. because t he pointer may not be in the expected position, the master may want to re-calibrate the pointer position with a rtz command after the voltage returns to a normal level. for an over voltage event, both gauges must be re-enabled as soon as this flag returns to logic [0]. the state machine c ontinues to operate properly as long as v dd is within normal range. ? 0 = normal range ? 1 = battery voltage fell below v pwruv , or exceeded v pwrov st5?gauge 1?movement since last spi communication. a logic [1] on this bit indicates that the gauge 1 pointer position has changed since the last spi command. this allows the master to confirm the pointer is moving as commanded. 1 1 0 0 49.92 1 1 0 1 54.02 1 1 1 0 58.11 1 1 1 1 62.21 table 14. rtzcr accumulator offset rc12 rc11 rc10 rc9 rc8 rc7 rc6 rc5 preload value (pv) initial accumulator value = (-16xpv)-1 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 0 0 1 1 -17 0 0 0 0 0 0 1 0 2 -33 0 0 0 0 0 0 1 1 3 -49 0 0 0 0 0 1 0 0 4 -65 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 1 1 1 1 1 1 1 1 255 -4081 table 13. rtzcr full step time rc3 rc2 rc1 rc0 full step time (ms) table 15. status output register od15 od14 od13 od12 od11 od10 od9 od8 od7 od6 od5 od4 od3 od2 od1 od0 read st15 st14 st13 st12 st11 st10 st9 st8 st7 st6 st5 st4 st3 st2 st1 st0
analog integrated circuit device data freescale semiconductor 19 33991 timing descriptions and diagrams device functional description ? 0 = gauge 1 position has not changed since the last spi command ? 1 = gauge 1 pointer positio n has changed since the last spi command st4?gauge 0? movement sinc e last spi communication. a logic [1] on this bit indicates the gauge 0 pointer position has changed since the last spi command. the master confirms that the pointer is moving as commanded. ? 0 = gauge 0 position has not changed since the last spi command ? 1 = gauge 0 pointer positio n has changed since the last spi command st3?rtz1?enabled successful or disabled. a logic [1] on this bit indicates gauge 1 is in the process of returning to the zero position as request ed with the rtz command. this bit continues to indicate a logic [1] until the spi message following a detection of the zero position, or the rtz feature is commanded off using the rtz message. ? 0 = return to zero disabled ? 1 = return to zero enabled successful st2?rtz0?enabled successful or disabled. a logic [1] on this bit indicates gauge 0 is in the process of returning to the zero position as request ed with the rtz command. this bit continues indicating a logic [1] until the spi message following a detection of the zero position, or the rtz feature is commanded off, using the rtz message. ? 0 = return to zero disabled ? 1 = return to ze ro enabled successful st1?gauge 1 junction over te mperature. a logic [1] on this bit indicates coil drive circuitry dedicated to drive gauge 1 exceeded the maximum allowable junction temperature since the last spi communication. additionally, the same indication signals the circuitry gauge 1 is disabled. it is recommended the pointer be re-calibrated using the rtz command after re-enabling the gauge using the pecr command. this bit remains logic [1] until the gauge is enabled. ? 0 = temperature within range ? 1 = gauge 1 maximum allo wable junction temperature condition has been reached st0?gauge 0? junction over temperature. a logic [1] on this bit indicates coil drive circuitry dedicated to drive gauge 0 exceeded the maximum allowable junction temperature since the last spi communication. additionally, the same indication signals the circuitry gauge 0 is disabled. it is recommended the pointer be re-calibrated using the rtz command after re-enabling the gauge, using the pecr command. this bit remains logic [1] until the gauge is re- enabled. ? 0 = temperature within range ? 1 = gauge 0 maximum allo wable junction temperature condition has been reached device functional description state machine operation the two-phase stepper motor is defined as maximum velocity and acceleration, and de celeration. it is the purpose of the stepper motor state machin e is to drive the motor with maximum performance, while remaining within the motor?s velocity and acceleration constraints. when commanded, the motor should accelerate constantly to the maximum velo city, then decelerate and stop at the desired position. during the deceleration phase, the motor should not exceed th e maximum deceleration. a required function of the state machine is to ensure the deceleration phase begins at the correct time, or position. during normal operation, both stepper motor rotors are microstepped with 24 steps per electrical revolution. see figure 6. a complete electrical revolution results in two degrees of pointer movement. there is a second and smaller state machine in the ic cont rolling these microsteps. this state machine receives clockwise or counter-clockwise index commands at intervals, stepping the motor in the appropriate direction by adjusting the current in each coil. normalized values provided in table 13.
analog integrated circuit device data 20 freescale semiconductor 33991 timing descriptions and diagrams device functional description figure 7. microstepping table 16. coil step value step# angle sine angle* sine current flow 8-bit value (dec) 8-bit value (hex) cos angle* cos current flow 8-bit value (dec) 8-bit value (hex) 0 0 0 + 0 0 1 + 255 ff 1 15 0.259 + 66 42 0.965 + 247 f7 2 30 0.5 + 128 80 0.866 + 222 de 3 45 0.707 + 181 b5 0.707 + 181 b5 4 60 0.866 + 222 de 0.5 + 128 80 5 75 0.966 + 247 f7 0.259 + 66 42 6 90 1 + 255 ff 0 + 0 0 7 105 0.966 + 247 f7 -0.259 - 66 42 8 120 0.866 + 222 de -0.5 - 128 80 9 135 0.707 + 181 b5 -0.707 - 181 b5 10 150 0.5 + 128 80 -0.866 - 222 de 11 165 0.259 + 66 42 -0.966 - 247 f7 12 180 0 + 0 0 -1 - 255 ff 13 195 -0.259 - 66 42 -0.966 - 247 f7 14 210 -0.5 - 128 80 -0.867 - 222 de 15 225 -0.707 - 181 b5 -0.707 - 181 b5 16 240 -0.866 - 222 de -0.5 - 128 80 17 255 -0.966 - 247 f7 -0.259 - 66 42 18 270 -1 - 255 ff 0 + 0 0 19 285 -0.966 - 247 f7 0.259 + 66 42 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 21 20 19 18 17 16 22 23 0 1 2 3 4 5 6 7 8 10 11 12 13 14 15 16 17 18 9 23 22 21 20 19 + _ _ + cosine sine i max i max i max i max i coil i coil 0 0
analog integrated circuit device data freescale semiconductor 21 33991 timing descriptions and diagrams device functional description the motor is stepped by providing index commands at intervals. the time between steps defines the motor velocity, and the changing time defines the motor acceleration. the state machine uses a table defining the allowed time steps, including the maximum velocity. a useful side effect of the table is, it also allows the direct determination of the position the velocity should reduce to allow the motor to stop at the desired position. the motor equations of motion are generated as follows: the units of position are steps, and velocity and acceleration are in steps/second, and steps/second2 from an initial position of 0, with an initial velocity u , the motor position, s at a time t is for unit steps, the time between steps is: this defines the time incr ement between steps when the motor is initially travelling at a velocity . in the rom, this time is quantized to multiples of the system clock by rounding upwards, ensuring acceleration never exceeds the allowed value. the actual velocity and acceleration is calculated from the time step actually used. using and and solving for v in terms of u , s and t gives: the correct value of t to use in this equation is the quantized value obtained above. from these equations, a set of recursive equations can be generated to give the allowed time step between motor indexes when the motor is accelerating from a stop to its maximum velocity. starting from a position p of 0, and a velocity v of 0, these equations define the time interval between steps at each position. to drive the motor at maximum performance, index commands are given to the motor at these intervals. a table is generated giving the time step ? t at an index position n . , where indicates rounding up. 20 300 -0.866 - 222 de 0.5 + 128 80 21 315 -0.707 - 181 b5 0.707 + 181 b5 22 330 -0.5 - 128 80 0.866 + 222 de 23 345 -0.259 - 66 42 0.966 + 247 f7 notes * denotes normalized values. table 16. coil step value 2 2 1 at ut s + = a a u u t 2 2 + + ? = ? as u v 2 2 2 + = at u v + = u t v ? = 2 0 0 0 0 = = v p ? ? ? ? ? ? ? ? + + ? = ? ? ? a a v v t n n n 2 2 1 1 ??
analog integrated circuit device data 22 freescale semiconductor 33991 timing descriptions and diagrams device functional description note: p n = n this means: on the n th step, the motor indexed by n positions and is accelerating steadily at the maximum allowed rate. this is critical because it also indicates the minimum distance the motor must travel while decelerating to a stop. for example, the stopping distance is also equal to the current value of n . the algorithm to drive the motor is similar to: ? while the motor is stopped, wait until a command is received. ? send index pulses to the motor at an ever-increasing rate, according to the time steps in table 13 until: ? the maximum velocity is reached; at this point the time intervals stop decreasing or: ? the distance remaining to travel is less than the current index in the tabl e. at this point, the stopping distance is equal to the remaining distance, ensuring it will stop at the required position, the motor must begin decelerating. an example of the table for a particular motor is provided in table 14. this motor?s maximum speed is 4800 microsteps/s (at 12 microsteps /degrees), and its maximum acceleration is 54000 microsteps/s 2 . the table is quantized to a 1 mhz clock. 1 2 ? ? ? = n n n v t v table 17. velocity ramp velocity position time between steps ( s) velocity ( steps/s) velocity position time between steps ( s) velocity ( steps/s) velocity position time between steps ( s) velocity ( steps/s) 0 0 0.00 72 363 2771.81 144 255 3931.78 1 16383 122.08 73 360 2791.22 145 255 3945.49 2 6086 350.58 74 358 2810.50 146 254 3959.15 3 2521 480.52 75 355 2829.65 147 253 3972.77 4 1935 582.15 76 353 2848.67 148 252 3986.34 5 1631 668.51 77 351 2867.56 149 251 3999.86 6 1437 744.92 78 348 2886.33 150 250 4013.34 7 1299 814.19 79 346 2904.98 151 249 4026.77 8 1195 878.01 80 344 2923.51 152 249 4040.16 9 1112 937.50 81 342 2941.92 153 248 4053.51 10 1045 993.43 82 340 2960.22 154 247 4066.81 11 988 1046.38 83 338 2978.41 155 246 4080.06 12 940 1096.77 84 336 2996.48 156 245 4093.28 13 898 1144.95 85 334 3014.45 157 245 4106.45 14 861 1191.18 86 332 3032.31 158 244 4119.58 15 829 1235.68 87 330 3050.07 159 243 4132.66 16 800 1278.63 88 328 3067.72 160 242 4145.71 17 773 1320.19 89 326 3085.27 161 241 4158.71 18 750 1360.48 90 324 3102.73 162 241 4171.68 19 728 1399.61 91 322 3120.08 163 240 4184.60 20 708 1437.67 92 320 3137.34 164 239 4197.49 21 690 1474.76 93 319 3154.51 165 238 4210.33 22 673 1510.93 94 317 3171.58 166 238 4223.14 23 657 1546.25 95 315 3188.56 167 237 4235.91 24 642 1580.79 96 314 3205.45 168 236 4248.64 25 628 1614.59 97 312 3222.25 169 236 4261.33
analog integrated circuit device data freescale semiconductor 23 33991 timing descriptions and diagrams device functional description 26 615 1647.70 98 310 3238.97 170 235 4273.98 27 603 1680.15 99 309 3255.60 171 234 4286.60 28 592 1711.99 100 307 3272.14 172 234 4299.17 29 581 1743.24 101 306 3288.60 173 233 4311.72 30 571 1773.95 102 304 3304.98 174 232 4324.22 31 561 1804.13 103 303 3321.28 175 232 4336.69 32 552 1833.82 104 301 3337.50 176 231 4349.13 33 543 1863.04 105 300 3353.64 177 230 4361.53 34 534 1891.80 106 298 3369.70 178 230 4373.89 35 526 1920.13 107 297 3385.69 179 229 4386.22 36 519 1948.05 108 295 3401.60 180 228 4398.51 37 511 1975.58 109 294 3417.44 181 228 4410.77 38 504 2002.72 110 293 3433.21 182 227 4423.00 39 497 2029.51 111 291 3448.90 183 226 4435.19 40 491 2055.94 112 290 3464.52 184 226 4447.35 41 485 2082.04 113 289 3480.07 185 225 4459.47 42 479 2107.82 114 287 3495.55 186 225 4471.57 43 473 2133.28 115 286 3510.97 187 224 4483.63 44 467 2158.45 116 285 3526.32 188 223 4495.65 45 462 2183.32 117 284 3541.60 189 223 4507.65 46 457 2207.92 118 282 3556.81 190 222 4519.61 47 452 2232.24 119 281 3571.96 191 222 4531.55 48 447 2256.30 120 280 3587.05 192 221 4543.45 49 442 2280.11 121 279 3602.07 193 220 4555.32 50 437 2303.67 122 278 3617.03 194 220 4567.15 51 433 2326.99 123 277 3631.93 195 219 4578.96 52 429 2350.09 124 275 3646.77 196 219 4590.74 53 425 2372.95 125 274 3661.54 197 218 4602.49 54 420 2395.60 126 273 3676.26 198 218 4614.21 55 417 2418.04 127 272 3690.92 199 217 4625.89 56 413 2440.27 128 271 3705.52 200 216 4637.55 57 409 2462.30 129 270 3720.07 201 216 4649.18 58 405 2484.13 130 269 3734.56 202 215 4660.78 59 402 2505.77 131 268 3748.99 203 215 4672.36 60 398 2527.23 132 267 3763.36 204 214 4683.90 61 395 2548.51 133 266 3777.68 205 214 4695.41 62 392 2569.61 134 265 3791.95 206 213 4706.90 63 389 2590.54 135 264 3806.17 207 213 4718.36 table 17. velocity ramp (continued) velocity position time between steps ( s) velocity ( steps/s) velocity position time between steps ( s) velocity ( steps/s) velocity position time between steps ( s) velocity ( steps/s)
analog integrated circuit device data 24 freescale semiconductor 33991 timing descriptions and diagrams device functional description internal clock calibration timing related functions on the 33991 (e.g., pointer velocities, acceleration and return to zero pointer speeds) depend upon a precise, consistent time reference to control the pointer accurately and reliably. generating accurate time references on an integrated circuit can be accomplished; however, they tend to be costly due to the large amount of die area required for trim pads and the associated trim procedure. one possibility to reduce cost is an externally generated clock signal. another inexpensive approach would require the use of an additional crystal or resonator. the internal clock in the 33991 is temperature independent and area efficient; however, it can vary by as much as +70 to - 35 percent due to process variation. using the existing spi inputs and the precision timing reference already available to the controller, the 33991 allows clock calibration to within 10 percent. calibrating the internal 1mhz clock will be initiated by writing a logic [1] to pecr bit d3. see figure 7. the 8 s calibration pulse is provided by t he controller. it ideally results in an internal 33991 clock speed of 1mhz. the pulse is sent on the cs pin immediately after the spi word is launched. no other spi lines must be toggled. at the moment the cs pin transitions from logic [1] to [0], an internal 7-bit counter counts the number of cycles of an in ternal, non-ca librated, and temperature independent, 8 mhz clock. the counter stops when the cs pin transitions from logic [0] to logic [1]. the value in the coun ter represents the number of cycles of the 8 mhz clock occurring in the 8 s window; it should range from 32 to 119. an offset is added to this number to help center, or skew the calibrated result to generate a desired maximum or nominal frequency. the modified counter value is truncated by four bits to ge nerate the calibration divisor, ranging from four to 15. the 8 mhz clock is divided by the calibration divisor, resulting in a calibrated 1 mhz clock. if the calibration divisor lies outside the range of four to 15, the 33991 flags the st7 bit, indica ting the calibration procedure was not successful. a clock calibra tion is allowed only if the gauges are disabled or the point ers are not moving, indicated by status bits st4 and st5. figure 8. gauge enable and clock calibration example some applications may require a guaranteed maximum pointer velocity and accele ration. guaranteeing these maximums requires nominal internal clock frequency falls below 1 mhz. the frequency range of the calibrated clock is always below 1mhz if pecr bit d4 is logic [0] when initiating a calibration command, followed by an 8 s reference pulse. the frequency will be centered at 1 mhz if bit d4 is logic [1]. the 33991 can be deceived into calibrating faster or slower than the optimal frequen cy by sending a calibration pulse longer or shorter than the intended 8 s. as long as the count remains between four and 15, there will be no clock calibration flag. for applicati ons requiring a slower calibrated clock, i.e., a motor designed with a gear ratio of 120:1 (8 microsteps/degrees), a longer ca libration pulse is required. the device allows a spi selectable slowing of the internal oscillator, using the pecr co mmand, so the calibration divisor safely falls within the four to 15 range when calibrating 64 385 2611.30 136 263 3820.33 208 212 4729.79 65 382 2631.90 137 262 3834.44 209 212 4741.19 66 379 2652.34 138 261 3848.49 210 211 4752.57 67 376 2672.62 139 260 3862.50 211 211 4763.92 68 374 2692.75 140 259 3876.45 212 210 4775.24 69 371 2712.73 141 258 3890.36 213 210 4786.53 70 368 2732.56 142 257 3904.22 214 209 4797.80 71 366 2752.25 143 256 3918.02 215 209 4800.00 table 17. velocity ramp (continued) velocity position time between steps ( s) velocity ( steps/s) velocity position time between steps ( s) velocity ( steps/s) velocity position time between steps ( s) velocity ( steps/s) si sclk csb pecr command 8us calibration pulse d15 d0 cs
analog integrated circuit device data freescale semiconductor 25 33991 timing descriptions and diagrams device functional description with a longer time reference. for example, for the 120:1motor, the pulse would be 12 s instead of 8 s. the result of this slower calibration will result in the longer step times necessary to generate pointer movements meeting acceleration and velocity requirements. the resolution of the pointer positioning decreases from 0.083/ microstep (180:1) to 0.125/microstep (120:1). the pointer sweep range increases from approximately 340 to over 500. note: be aware a fast calibration could result in violations of the motor acceleration and ve locity maximums, resulting in missed steps. pointer deceleration waveshaping constant acceleration and deceleration of the pointer results in choppy movements when compared to air core movements. air core behavio r can be simulated with appropriate wave- shaping during deceleration only. this shaping can be accomplished by adding repetitive steps at several of the last step values. an example is illustrated in figure 8. figure 9. deceleration waveshaping return to zero calibration many stepper motor applicati ons require the integrated circuit (ic) detect when the motor is stalled after commanded to return to the zero position for calibration purposes. stalling occurs when the pointer hits th e end stop on the gauge bezel, usually at the zero position. it is important when the pointer reaches the end stop it immediately stops without bouncing away from the stop. the 33991 device provides the ability to automatically, and independently return each of the two pointers to the zero position via the rtzr and rtzcr spi commands. during an rtz event, all commands related to the gauge that is being returned are ignored, except when the rtzr bit d1 is used to disable the event, or when the rtzr bits d3 and d2 are changed in order to look at different rtz accumulator bits. once an rtz event is initiated, the device reports back via the so pin, indicating an rtz is underway. the rtzcr command is used to set the rtz pointer speed, choose an appropriate blanking time and preload the integration accumulator with an appropriate offset. reaching the end stop, the device reports the rtz success to the micro controller via the so pin. the rtz automatically disables, allowing other commands to be va lid. in the event the master determines an rtz sequence is not working properly, for example the rtz taking too long, it can disable the command via the rtzr bit d1. rtzcr bits d12:d5 are written to preload the accumulator with a predetermined value assuring an accurate pointer stall detection. this preloaded value is determined during application development by disabling the automatic shutdown feature of the device with the rtzr bit d4. this operating mode allows the master to monitor the rtz event, using the accumulator information available in the so status bits d15: d8. once the optimal value is determined, the rtz event can be turned off using the rtzr bit d1. during an rtz event, the pointer is returned counter- clockwise (ccw) using full steps at a constant speed determined by the rtzcr d3:d0 bits during rtz configuration. see figure 9. full steps are used because only one coil of the motor is being driven at any time. the coil not being driven is used to determine whether the pointer is moving. if the pointer is moving, a back emf signal can be processed and detected in the non-driven coil. this is achieved by integrating the si gnal present on an opened end of the non-driven coil while grounding the opposite end. the ic automatically prepares the non-driven coil at each step, waits for a predetermined blanking time, then processes the signal for the duration of the full step. when the pointer reaches the stop and no longer moves, the dissipating back emf is detected. the processed results are placed in the rtz accumulator, then compared to a decision threshold. if the sig nal exceeds the decisi on threshold, the pointer is assumed to be moving. when the threshold value is not exceeded, the drive se quence is stopped if rtzr bit d4 is logic [0]. if bit d4 is logic [1], the rtz movement will 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 d e holdcnt = 6 4 3 3 3 2 2 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 n = velocity accelerate c e l er a te steps
analog integrated circuit device data 26 freescale semiconductor 33991 timing descriptions and diagrams device functional description continue indefinitely until the rtzr bit d1 is used to stop the rtz event. a pointer not on a full step location, or in magnetic alignment prior to the rtz event, may result in a false rtz detection. more specifically, an rtz event beginning from a non-full step position, may result in an abbreviated integration, interpreted as a stalled pointer. similarly, if the magnetic fields of the energized coils and the rotor are not aligned prior to initiating the rtz, the integration results may mistakenly indicate the pointer has stopped moving. advancing the pointer by at least 24 microsteps clockwise (cw) to the nearest full step po sition, e.g., 24, 30, 36,42,48... prior to initiating an rtz, ensures the magnetic fields are aligned. doing that increases the chances of a successful pointer stall detection. it is impor tant the pointer be in a static, or commanded position before starting the rtz event. because the time duration and the number of steps the pointer moves prior to reaching the commanded position can vary depending upon its status at the time a position change is communicated, the master should assure sufficient elapsed time prior to starting an rtz. if an rtz is desired after first enabling the outputs, or after forcing a reset of the device, the pointer should first be commanded to move 24 microstep steps cw to the neares t full step location. because the pointer was in a static posit ion at default, the master could determine the number of microst eps the device has taken by monitoring and counting the st4 (st5) status bit transitions, confirming the pointer is again in a static position. only one gauge at a time can be returned to the zero position. an rtz should not begin until the gauge to be calibrated is at a stat ic position and its pointer is at a full step position. an attempt to calibrate a gauge, while the other is in the process of an rtz event, will be ignored by the device. in most applications of the rtzr command, it is possible to avoid a visually obvious sequentia l calibration by first bringing the pointer back to the previo us zero position, then re- calibrating the pointers. after completion of an rtz, the 33991 automatically assigns the zero step position to the full step position at the end stop location. because the actual zero position could lie anywhere within the full step where the zero was detected, the assigned zero position could be within a window of 0.5. an rtz can be used to detect sta ll, even if the pointer already rests on the end stop when an rtz sequence is initiated; however, it is recommended the pointer be advanced by at least 24 microsteps to the nearest full step prior to initiating the rtz. figure 10. full steps (ccw) rtz output during an rtz event, the non-driven coil is analyzed to determine the state of the mo tor. the 33991 multiplexes the coil voltages and provides the signal from the non-driven coil, to the rtz pin. default mode default mode refers to the state of the 33991 after an internal or external reset prior to spi communication. an internal reset occurs during v dd power-up. an external reset is initiated by the rst pin driven to a logic [0]. with the exception of the rtz cr full step time, all of the specific pin + _ _ + 0 1 2 3 0 2 0 0 3 1 i ma x i ma x i ma x i ma x 0 0 i coil i coil sine cosine
analog integrated circuit device data freescale semiconductor 27 33991 timing descriptions and diagrams application information functions and internal registers will operate as though all of the addressable configuration register bits were set to logic[0]. this means, for example, all of the outputs will be disabled after a power-up or external reset, so flag st6 is set, indicating an under voltage event. anytime an external reset is exerted and the default is restored, all configuration parameters, e.g., clock calibration, maximum speed, rtz parameters, etc. are lo st and must be reloaded. fault logic requirements the 33991 device indicates each of the following faults as they occur: ? over temperature fault ? out- of- range voltage faults ? clock out of specification over current faults are not reported directly; however, it is likely an over current condition will become a thermal issue and be reported. over temperature fault requirements the 33991 incorporate over temperature protection circuitry, shutting off the affected gauge driver when excessive temperatures are measured. in the event of a thermal overload, the affected gauge driver will be automatically disabled. the over temperature fault is flagged via st0 and/or st1. its respec tive flag continues to be set until the affected gauge is su ccessfully re-enabled, provided the junction temperature falls below the hysteresis level. over voltage fault requirements the device is capable of surviving v pwr voltages within the maximum specified in the maximum ratings table . v pwr levels resulting in an over voltage shut down condition can result in uncertain pointer positions. therefore, the pointer position should be re-calibrated. the master will be notified of an over voltage event via the st 6 flag on the so pin. over voltage detection and notification will occur regardless of whether the gauge(s) are enabled or disabled. note: there is no way to distinguish between an over voltage fault and an under voltage f ault from the status bits. if there is no external means fo r the micro controller to determine the fault type, the gauges should be routinely enabled following the transition to logic [0] of st6. over current fault requirements output currents will be limited to safe levels, then the device will rely on thermal shutdown to protect itself. under voltage fault requirements severe under voltage v pwr conditions may result in uncertain pointer positions; th erefore, recalibration of the pointer position may be advisable. during an under voltage event, the state machine and ou tputs will continue to operate although the outputs may be unable to reach the higher voltage levels. the master is notified of an under voltage event via the so pin. under voltage detection will occur regardless whether the gauge(s) are enabled or disabled. note: there is no way to distinguish between an over voltage fault and an under voltage f ault from the status bits. if there is no external means fo r the micro controller to determine the fault type, the gauges should be routinely enabled following the transition to logic [0] of st6. electrical requirements all voltages specified are measur ed relative to the device ground pins unless otherwise note d. current flowing into the 33991is positive, while current flowing out of the device is negative. resets (sleep mode) the device can reset internally or externally. if the v dd level falls below the v dduv level, specified in the static electrical characteristics , the device resets and powers up in the default mode. similarly, if the rst pin is driven to a logic [0], the device resets to it s default state. the device consumes the least amount of current ( idd and ipwr ) when the rst pin is logic[0]. this is also be referred to as the sleep mode. application information the 33991 is an extremely versatile device used in a variety of applications. table 15, and the sample code, provides a step-by-step exampl e of configuring using many of the features designed into th e ic. this example is intended to give a generic overview of how the device could be used. further, it is intended to fam iliarize users with some of its capabilities. in steps 1-9, the gauges are enabled, the clock is calibrated, the device is configured for rtz, and the pointers are calibrated with the rtz command. steps 1-9 are representative of the first steps after power-up. maximum velocity is set in step 10, if necessary. in steps 11 and 12, pointers are commanded to t he desired positions by the master. these steps are the mo st frequently used during normal operation. steps 13 -15 place the pointer close to the zero position prior to the initiation of the rtz commands in steps 16-19. step 20 disables the gauges, placing them into a low quiescent current mode.
analog integrated circuit device data 28 freescale semiconductor 33991 timing descriptions and diagrams application information table 18. 33991 setup, configuration, & usage example step # command description reference figure # 1 pecr a. enable gauges. - bit pe0: gauge 0. - bit pe1: gauge 1. table 3 figure 7 b. clock calibration. - bit pe3: enables calibration procedure. - bit pe4: set clock f =1 mhz maximum or nominal. send 8 s pulse on cs to calibrate 1 mhz clock. 2 rtzcr set rtz full step time. - bits rc3:rc0. tables 9-10 set rtz blanking time. - bit rc4. tables 9-10 preload rtz accumulator. - bits rc12:rc5. table 11 check so for an out-of-range clock calibration - is bit st7 logic 1? if so, then repeat steps 1 and 2. table 12 3 pos0r a. move pointer to position 24 prior to rtz table 5 4 pos1r move pointer to position 24 prior to rtz. table 6 check so to see if gauge 0 has moved. - is bit st4 logic 1? if so then the ga uge 0 has moved to the first microstep. table 12 5 pecr send null command to see if gauges have moved. - bits pe12. table 3 check so to see if gauge 0 (gauge 1) has moved. - bit st4 (st5) logic1? if so, then gauge 0 (gauge 1) has moved another microstep. keep track of movement and if 24 steps ar e finished, and both gauges are at a static position, then rtz. otherwise repeat steps a) and b). table 12 6 rtz a. return one gauge at a time to the zero stop using rtz command bit rz0 selects the gauge bit rz1 is used to enable or disable an rtz. - bits rz3:rz2 are used to select the rtz accumulator bits that will clock out on the so pin. table 7 b. select the rtz accumulator bits that will clock out on the so bits st15:st8. these wi ll be used if characterizing the rtz. - bits rz3:rz2 are used to select the bits. table 8 7 pecr a. check the status of the rtz by sending the null command to monitor so bit st2. - bit pe12 is the null command. table 3 is st2 logic 0? if not then gauge 0 still re turning and null command should be resent. table 12 8 rtz return the other gauge to the zero stop. if the second gauge is driving a different pointer than the first, then a new rtzcr command may be required to change the full step time. tables 7-8 9 pecr a. check the status of the rtz by sending the null command to monitor so bit st3 - bit pe12 is the null command. table 3 is st3 logic 0? if not then gauge 1 still re turning and null command should be resent. table 12
analog integrated circuit device data freescale semiconductor 29 33991 timing descriptions and diagrams application information 10 velr change the maximum velocity of the gauge bits v8:v9 determine which gauge(s) will change the maximum velocity bits v7:v0 determine the maximum velocity position from the acceleration table. table 4 11 pos0r position gauge 0 pointer - bits p0 11: p0 0: desired pointer position table 5 check so for out of range v pwr - bit st6 logic 1? if so, then rtz after valid v pwr table 12 check so for over temperature bit st0 logic 1? if so, then enable driver again. if st0 continues to indicate over temperature, shut down gauge 0. if st2 returns to normal, then reestablish the zero reference by rtz command. 12 pos1r position gauge 1 pointer - bits p1 11:p1 0: desired pointer position. table 6 check so for out-of-range v pwr bit st6 logic 1? if so, then rtz after valid v pwr . table 12 check so for over temperature bit st1 logic 1? if so, then enable driver again. if st1 continues to indicate over temperat ure, then shut down gauge 1. if st1 returns to normal, re-establish the zero reference by rtz command. 13 pos0r a. return the pointers clos e to zero position using pos0r. table 5 b. move pointer position at least 24 microsteps cw to the nearest full step prior to rtz. 14 pos1r return the pointers close to zero position using pos1r. table 6 move pointer position at least 24 microsteps cw to the nearest full step position prior to rtz. check so to see if gauge 0 has moved. - bit st4 logic 1? if so then the gauge 0 has moved to the first microstep. table 12 15 pecr send null command to see if gauges have moved. - bits pe12 table 3 check so to see if gauge 0 (gauge 1) has moved - bit st4 (st5) logic1? if so, then gauge 0 (gauge 1) has moved another microstep. keep track of movement and if 12 steps ar e finished, and both gauges are at a static position, then rtz. otherwise repeat steps a) and b). table 12 16 rtz a. return one gauge at a time to the zero stop using rtz command bit rz0 selects the gauge bit rz1 is used to enable or disable an rtz - bits rz3: rz2 are used to select the rtz accumulator bits that will clock out on the so pin. tables 7-8 b. select the rtz accumulator bits clocking out on the so bits st15:st8. these will be used if characterizing the rtz. - bits rz3:rz2 are used to select the bits. 17 pecr a. check the status of the rtz by sending the null command to monitor so bit st2 - bit pe12 is the null command. table 3 is st2 logic 0? if not then gauge 0 still returning. null command should be resent. table 12 table 18. 33991 setup, configuration, & usage example (continued) step # command description reference figure #
analog integrated circuit device data 30 freescale semiconductor 33991 timing descriptions and diagrams application information 18 rtz return the other gauge to the zero stop. if the second gauge is driving a different pointer than the first, a new rtzcr command may be required to change the full step time. tables 7-8 19 pecr a. check the status of the rtz by sending the null command to monitor so bit st3. - bit pe12 is the null command. table 3 is st3 logic 0? if not then gauge 1 still re turning and null command should be resent. table 12 20 pecr disable both gauges and go to standby bit pe0: pe1 are used to disable the gauges. table 3 put the device to sleep. - rst pin is pulled to logic 0. table 18. 33991 setup, configuration, & usage example (continued) step # command description reference figure #
analog integrated circuit device data freescale semiconductor 31 33991 timing descriptions and diagrams sample code sample code / * the following example code demonstrates a typical set up configuration for a m68hc912b32. * / / * this code is intended for instructional use only. motorola assumes no liability for use or * / / * modification of this code. it is the responsibility of the user to verify all parameters, variables,*/ / * timings, etc. */ void initgauges (void) { /* step 1 */ command_gauge (0x00,0x03); /* enable gauges */ command_gauge (0x00,0x08); /* clock cal bit set */ /* 8 usec calibration */ ports = 0x00; /* enable gdic cs pin - ports2 */ for (cnt = 0; cnt < 5; cnt++) { /* wait for 8 usec calibration */ nop; } ports = 0x04; /* disable gdic cs pin - ports2 */ /* step 2 */ command_gauge (0xa0,0x21); /* send rtzcr values */ command_gauge (0x10,0x00); /* null read to get so status */ /*check so bits for out of range clock calibration */ if ((status & 0x80) != 0) /*if clock is out of range then recalibrate 8 usec pulse */ /* step 3 */ command_gauge (0x40,0x18); /* send position to gauge0 */ /* step 4 */ command_gauge (0x60,0x18); /* send position to gauge1 */ /* check so bit st4 to see if gauge 0 has moved */ if ((status & 0x10) != 0) /* if st4 is logic 1 then gauge 0 has moved to the first microstep */ /* step 5 */ command_gauge (0x10,0x00); /* null read to get so status */ /* check so bit st4 to see if gauge 0 has moved */ if ((status & 0x10) != 0) /* if it has moved, then keep track of position */ /* wait until 24 steps are finished then send a rtz command (step 7) */ /* step 6 */ command_gauge (0x80,0x02); /* send rtz to gauge 0 */ /* step 7 */ command_gauge (0x10,0x00); /* null read to get status */ /* read status until rtz is done */ while ((status & 0x04) != 0) { command_gauge (0x10,0x00);}
analog integrated circuit device data 32 freescale semiconductor 33991 timing descriptions and diagrams sample code / * step 8 */ command_gauge (0x80,0x03); /* send rtz to gauge 1 */ /* step 9 */ command_gauge (0x10,0x00); /* null read to get status */ /* read status until rtz is done */ while ((status & 0x08) != 0) { command_gauge (0x10,0x00);} /* step 10 */ command_gauge (0x23,0xff); /* send velocity */ /* step 11 */ command_gauge (0x4f,0xff); /* send position to gauge0 */ /*check so bits for out of range vpwr and overtemperature */ if ((status & 0x40) != 0) /* if bit st6 is logic 1 then rtz after valid vpwr */ if ((status & 0x01) != 0) /* if bit st0 is logic 1 then enable driver again. /* if st0 continues to indicate over temperature, then shut down gauge 0. */ /* if st2 returns to normal, then reestablish the zero reference by rtz command. */ /* step 12 */ command_gauge (0x6f,0xff); /* send position to gauge1 */ /*check so bits for out of range vpwr and over-temperature */ if ((status & 0x40) != 0) /* if bit st6 is logic 1 then rtz after valid vpwr */ if ((status & 0x01) != 0) /* if bit st0 is logic 1 then enable driver again. /* if st0 continues to indicate over-temperature, then shut down gauge 1. */ /* if st2 returns to normal, then reestablish the zero reference by rtz command. */ /* step 13 */ command_gauge (0x40,0x00); /* send position to gauge 0 */ /* return the pointers close to zero position */ command_gauge (0x40,0x18); /* send position to gauge 0 */ /* move the pointer at least 24 microsteps cw to the nearest full step */ /* step 14 */ command_gauge (0x60,0x00); /* send position to gauge 1 */ /* return the pointers close to zero position */ command_gauge (0x60,0x18); /* send position to gauge 1 */ /* move the pointer at least 24 microsteps cw to the nearest full step */ /* check so bit st4 to see if gauge 0 has moved */ if ((status & 0x10) != 0) /* if st4 is logic 1 then gauge 0 has moved to the first microstep */
analog integrated circuit device data freescale semiconductor 33 33991 timing descriptions and diagrams sample code / * step 15 */ command_gauge (0x10,0x00); /* null read to get status */ /* check so bit st4 to see if gauge 0 has moved */ if ((status & 0x10) != 0) /* if it has moved, then keep track of position */ /* wait until 24 steps are finished then send a rtz command (step 17) */ /* step 16 */ command_gauge (0x80,0x02); /* send rtz to gauge 0 */ /* step 17 */ command_gauge (0x10,0x00); /* null read to get status */ /* read status until rtz is done */ while ((status & 0x04) != 0) { command_gauge (0x10,0x00);} /* step 18 */ command_gauge (0x80,0x03); /* send rtz to gauge 1 */ /* step 19 */ command_gauge (0x10,0x00); /* null read to get status */ /* read status until rtz is done */ while ((status & 0x08) != 0) { command_gauge (0x01,0x00);} /* step 20 */ command_gauge (0x00,0x00); /* disable gauges and go into standby */ /* put device to sleep by setting rstb to logic 0 */ } void command_gauge (char msb, char lsb) /*this subroutine sends the gdic commands on the spi port */ { ports = 0x00; /* chip select low (active) */ sp0dr = msb; /* send first byte of gauge command */ while ((sp0sr & 0x80) == 0); /* wait for rxflag (first byte) */ rtzdata = sp0dr; /* read status msb */ sp0dr = lsb; /* send second byte of command */ while ((sp0sr & 0x80) == 0); /* wait for rxflag (second byte) */ status = sp0dr; /* read status lsb */ ports = 0x04; /* chip select high (deactivated) */ } / * motorola semiconductor products sector */ / * october 4, 2002 */
analog integrated circuit device data 34 freescale semiconductor 33991 package dimensions package dimensions package dimensions package dimensions for the most current package revision, visit www.freescale.com and perform a keyword search using the ?98a? listed below. dw suffix eg suffix (pb-free) 24-pin plastic package 98asb42344b rev. f
analog integrated circuit device data freescale semiconductor 35 33991 revision history revision history revision date description of changes 2.0 11/2006 ? implemented revision history page ? updated to current freescale format and style ? added MCZ33991EG/r2 to the ordering information ? removed peak package reflow temperature during reflow (solder reflow) parameter from maximum ratings on page 5 . added note with instructions from www.freescale.com .
mc33991 rev. 2.0 11/2006 information in this document is provided solely to enable system and software implementers to use freescale semiconduc tor products. there are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits or integrated circuits based on the information in this document. freescale semiconductor reserves the right to make changes without further notice to any products herein. freescale semiconductor makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does freescale semiconductor assume any liability ar ising out of the application or use of any product or circuit, and specifically discl aims any and all liability, including without limitation consequential or incidental damages. ?typical? parameters that may be provided in freescale semiconductor data s heets and/or specifications can and do vary in different applications and actual performance may vary over time. all operating parameters, including ?typicals?, must be validated for each customer application by customer?s technical experts. freescale se miconductor does not convey any license under its patent rights nor the rights of others. freescale semiconductor products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the fa ilure of the freescale semiconductor product could create a situation where personal injury or death may occur. should buyer purchase or use freescale semiconductor products for any such unintended or unauthorized application, buyer shall indemni fy and hold freescale semiconductor and its officers, employees, subsidiaries, affili ates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that freescale semiconductor was negligent regarding the design or manufacture of the part. freescale? and the freescale logo are trademarks of freescale semiconductor, inc. all other product or service names are the property of their respective owners. ? freescale semiconductor, inc., 2006. all rights reserved. rohs-compliant and/or pb-free versions of freescale products have the functionality and electrical characteristics of thei r non-rohs-compliant and/or non-pb-free counterparts. for further information, see http://www.freescale.com or contact your freescale sales representative. for information on freescale?s environmental products program, go to http:// www.freescale.com/epp . how to reach us: home page: www.freescale.com web support: http://www.freescale.com/support usa/europe or locations not listed: freescale semiconductor, inc. technical information center, el516 2100 east elliot road tempe, arizona 85284 +1-800-521-6274 or +1-480-768-2130 www.freescale.com/support europe, middle east, and africa: freescale halbleiter deutschland gmbh technical information center schatzbogen 7 81829 muenchen, germany +44 1296 380 456 (english) +46 8 52200080 (english) +49 89 92103 559 (german) +33 1 69 35 48 48 (french) www.freescale.com/support japan: freescale semiconductor japan ltd. headquarters arco tower 15f 1-8-1, shimo-meguro, meguro-ku, tokyo 153-0064 japan 0120 191014 or +81 3 5437 9125 support.japan@freescale.com asia/pacific: freescale semiconductor hong kong ltd. technical information center 2 dai king street tai po industrial estate tai po, n.t., hong kong +800 2666 8080 support.asia@freescale.com for literature requests only: freescale semiconductor literature distribution center p.o. box 5405 denver, colorado 80217 1-800-441-2447 or 303-675-2140 fax: 303-675-2150 ldcforfreescalesemiconductor@hibbertgroup.com


▲Up To Search▲   

 
Price & Availability of MCZ33991EG

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X